package notes.java.java8.demo.newtime;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;

public class D3_ZoneId {
	
	public static void main(String[] args) {
		
		// 美国时区
		ZoneId america = ZoneId.of("America/New_York");
		
		LocalDateTime ldt = LocalDateTime.now();
		
		ZonedDateTime zdt = ZonedDateTime.of(ldt, america);
		
		// 输出
		System.out.println(zdt);
		
	}

}
